package com.dtstack.mongodb.controller;

import com.dtstack.mongodb.facade.DemoFacade;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Demo
 *
 * <p>
 * </p>
 *
 * @author chuanbai
 * @date 2024/10/17
 */
@RestController
@RequestMapping("/demo")
public class Demo {

    @Resource
    private DemoFacade demoFacade;

    @GetMapping("/t")
    public String demo(){
        demoFacade.syn();
        System.out.println("请求线程id："+Thread.currentThread().getId());
        return "ok";
    }
}
